import React, { useContext } from 'react';
import { Row, Col, DatePicker } from 'antd';
import pageStyles from '@/common/pageLayout.less';
import { TagSelectNew as TagSelect } from '@/components/TagSelectNew';
import { ExpertsUpdateContext } from '../common/ExpertsContext';
const TodayDatePicker: any = DatePicker;
const UpdateExpertsFormOtherInfo: React.FC = () => {
  const { expertsInfo } = useContext(ExpertsUpdateContext);
  return (
    <Row className={pageStyles['fromView-labelLengthMax']}>
      <Col span={12}>
        <TagSelect
          formLabel="内外部专家"
          formName="expertFlag"
          formRequired={true}
          radioList={[
            {
              value: 0,
              name: '内部专家',
            },
            {
              value: 1,
              name: '外部专家',
            },
          ]}
          defalultKeys={expertsInfo?.expertFlag || 0}
        />
      </Col>
    </Row>
  );
};

export default UpdateExpertsFormOtherInfo;

{
  /* <Col span={12}>
<Form.Item label="生日" name="birthday" rules={[{ required: true, message: '请输入生日' }]}>
  <TodayDatePicker placeholder="请选择" style={{ width: '100%' }} format="YYYY-MM-DD" />
</Form.Item>
</Col>

<Col span={12}>
<Form.Item label="对应任务" name="taskType">
  <Input placeholder="请输入" />
</Form.Item>
</Col>

<Col span={12}>
<Form.Item label="开户行名称" name="bankName" rules={[{ required: true, message: '请输入开户行名称' }]}>
  <Input placeholder="请输入" />
</Form.Item>
</Col>

<Col span={12}>
<Form.Item label="银行账户" name="bankNum" rules={[{ required: true, message: '请输入银行账户' }]}>
  <Input placeholder="请输入" />
</Form.Item>
</Col> */
}

{
  /* <Form.Item label="性别" name="sex">
          <Select placeholder="请选择">
            <Option value={0}>未知</Option>
            <Option value={1}>先生</Option>
            <Option value={2}>女士</Option>
          </Select>
        </Form.Item> */
}

{
  /* <Col span={12}>
        <Form.Item label="政治面貌" name="politicalType" rules={[{ required: true, message: '请选择政治面貌' }]}>
          <Select
            placeholder="请选择"
            options={politicalTypeList}
            fieldNames={{
              label: 'name',
              value: 'value',
            }}
          />
        </Form.Item>
      </Col> */
}
{
  /* <Col span={12}>
        <Form.Item label="民族" name="nationType">
          <Select
            placeholder="请选择"
            options={antionTypeList}
            fieldNames={{
              label: 'name',
              value: 'value',
            }}
          />
        </Form.Item>
      </Col> */
}
{
  /* <Col span={24}>
        <Form.Item label="简介" name="profileInfo">
          <Input.TextArea placeholder="请输入" showCount maxLength={400} autoSize={{ minRows: 2, maxRows: 4 }} />
        </Form.Item>
      </Col> */
}
